package com.gofun.framework.core.utils;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;


@Component
public class PropertyUtils implements EnvironmentAware {
	
	private static Environment env;

	@Override
	public void setEnvironment(Environment environment) {
		env = environment;
	}
	
	public final static String getProperty(String key){
		return env.getProperty(key);
	}

}
